package cn.edu.xmu.orderpayment.order.microservice;

import cn.edu.xmu.orderpayment.order.microservice.vo.ShopSimpleRetVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Li Yixuan 22920192204232
 * @create: 2021/12/18
 */
@FeignClient(name = "shop-service")
public interface ShopService {
    /**
    * @Description: 按onSaleId寻找店铺
    * @Author: Li Yixuan 22920192204232
    * @Date: 2021/12/18
    */
    @GetMapping("/shops/{id}")
    InternalReturnObject<ShopSimpleRetVo> getShopById(@PathVariable("id")Long id);
}
